@import '../styles/common/var.less';


@screen-xs: 480px;
@steps-prefix-cls: ~"@{ant-prefix}-steps";
@process-icon-color: @primary-color;
@process-title-color: @heading-color;
@process-description-color: @text-color;
@process-tail-color: @border-color-split;
@process-icon-text-color: #fff;
@wait-icon-color: @disabled-color;
@wait-title-color: @text-color-secondary;
@wait-description-color: @wait-title-color;
@wait-tail-color: @process-tail-color;
@finish-icon-color: @process-icon-color;
@finish-title-color: @text-color;
@finish-description-color: @text-color-secondary;
@finish-tail-color: @primary-color;
@error-icon-color: @error-color;
@error-title-color: @error-color;
@error-description-color: @error-color;
@error-tail-color: @wait-tail-color;
@steps-background: @component-background;

@steps-icon-size: 32px;
@steps-small-icon-size: 24px;
@steps-dot-size: 8px;
@steps-current-dot-size: 10px;
@steps-desciption-max-width: 140px;

@white:#fff;


:global{


  .horizontal{
    .ant-steps-item-content > .ant-steps-item-title{
      padding-right:0px;
      margin: auto;
      color: #4C525B;
      margin-top: 6px;
    }
    .ant-steps-horizontal:not(.ant-steps-label-vertical) .ant-steps-item{
      position: relative;
      display: inline-block;
      vertical-align: top;
      -ms-flex: 1 1;
      flex: 1 1;
      overflow: hidden;
    }

    .ant-steps-item-process{
      .ant-steps-item-icon {
        padding-right: 0;
        width: 32px;
        height: 32px;
        line-height: 8px;
        border: 0;
        margin-left: calc(~"50% - 16px");
        background: @process-icon-color;
        color: @process-icon-text-color;
        .ant-steps-icon{
          top:20%;
        }

      }
      .ant-steps-item-content > .ant-steps-item-title{
        color:#2D81FF
      }
    }

    .ant-steps-item-finish .ant-steps-item-icon{
      padding-right: 0;
      width: 32px;
      height: 32px;
      line-height: 8px;
      border: 1;
      border-color: #2D81FF;
      margin-left: calc(~"50% - 16px");
      background: @white;

      .ant-steps-icon{
        top:20%;
      }
      .ant-steps-item-content > .ant-steps-item-title{
        color:#2D81FF
      }
    }

    .ant-steps-item-wait .ant-steps-item-icon{
      padding-right: 0;
      width: 32px;
      height: 32px;
      line-height: 8px;
      border: 1;
      color:#4C525B;
      border-color: #4C525B;
      margin-left: calc(~"50% - 16px");
      background: @white;
      .ant-steps-icon{
        top:20%;
        color:#4C525B;
      }
      .ant-steps-item-content > .ant-steps-item-title{
        color:#4C525B
      }
    }

    .ant-steps-horizontal{
      .ant-steps-item-content{
        display:flex;
        :after{
          display: none;
        }
      }

      .ant-steps-item-icon{
        :after {
          content: '';
          width: 9999px;
          display: block;
          position: absolute;
          top: 50%;
          left: 32px;
          border-bottom: #D9D9D9 1px dashed;
        }
      }
      :last-child{
        :after{
          display: none;
        }
      }

    }


  }

  .vertical{
    .ant-steps-vertical{
      .ant-steps-item{
        height: 60px;
      }
      .ant-steps-item-tail:after{
        content: '';
        display: inline-block;
        background: #e8e8e8;
        height: 100%;
        border: #D9D9D9 0.5px dashed;
      }

      .ant-steps-item-content > .ant-steps-item-title{
        padding-right:0px;
        margin: auto;
        color:#4C525B;
      }
      .ant-steps-item-process{
        .ant-steps-item-icon {
          background: @process-icon-color;
          color: @process-icon-text-color;

        }
        .ant-steps-item-content > .ant-steps-item-title{
          color:#2D81FF
        }
      }

      .ant-steps-item-finish {
        .ant-steps-item-icon{
          border: 1;
          border-color: #2D81FF;
          background: @white;
          .ant-steps-item-content > .ant-steps-item-title{
            color:#2D81FF
          }

        }
      }


      .ant-steps-item-wait .ant-steps-item-icon{
        border: 1;
        color:#4C525B;
        border-color: #4C525B;
        background: @white;
        .ant-steps-icon{
          color:#4C525B;
        }
      }
    }

  }


}











